package com.dcbeida.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by 150410 on 2017/10/17.
 */

public class Stock implements Serializable {

    /**
     * stock : 100
     * daysforsale : 20
     * totalcount : 10
     * records : 10
     * list : [{"stockinlogid":"23421","addstocktime":"2017-09-25 12:31:00","deliverytime":"2017-09-01","drugcodes":"23421231231,2342432342","quantity":60,"provider":"XXXX供货商","providername":20,"invocemoney":20000,"deliverimgurl":"http://.....","createtime":"2017-09-01","drugcount":100,"drugs":[{"batchnumber":"","expiredate":"","drugcode":"81857470012642467758","drugcodelevelno":1,"parentdrugcode":"88958190001270411607","quantity":0,"drugid":1}]}]
     */


    private String stock;
    private String daysforsale;
    private String totalcount;
    private String records;
    private ArrayList<ListBean> list;
    private List<DrugBean> druglist;

    public String getStock() {
        return stock;
    }

    public List<DrugBean> getDruglist() {
        return druglist;
    }

    public void setDruglist(List<DrugBean> druglist) {
        this.druglist = druglist;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getDaysforsale() {
        return daysforsale;
    }

    public void setDaysforsale(String daysforsale) {
        this.daysforsale = daysforsale;
    }

    public String getTotalcount() {
        return totalcount;
    }

    public void setTotalcount(String totalcount) {
        this.totalcount = totalcount;
    }

    public String getRecords() {
        return records;
    }

    public void setRecords(String records) {
        this.records = records;
    }

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Serializable {
        /**
         * stockinlogid : 23421
         * addstocktime : 2017-09-25 12:31:00
         * deliverytime : 2017-09-01
         * drugcodes : 23421231231,2342432342
         * quantity : 60
         * provider : XXXX供货商
         * providername : 20
         * invocemoney : 20000
         * deliverimgurl : http://.....
         * createtime : 2017-09-01
         * drugcount : 100
         * drugs : [{"batchnumber":"","expiredate":"","drugcode":"81857470012642467758","drugcodelevelno":1,"parentdrugcode":"88958190001270411607","quantity":0,"drugid":1}]
         */

        private String stockinlogid;
        private String addstocktime;
        private String deliverytime;
        private String drugcodes;
        private String quantity;
        private String provider;
        private String providerid;
        private String providername;
        private String invoicemoney;
        private String deliverimgurl;
        private String createtime;
        private String drugcount;
        private ArrayList<DrugsBean> drugs;

        public String getProviderid() {
            return providerid;
        }

        public void setProviderid(String providerid) {
            this.providerid = providerid;
        }

        public String getStockinlogid() {
            return stockinlogid;
        }

        public void setStockinlogid(String stockinlogid) {
            this.stockinlogid = stockinlogid;
        }

        public String getAddstocktime() {
            return addstocktime;
        }

        public void setAddstocktime(String addstocktime) {
            this.addstocktime = addstocktime;
        }

        public String getDeliverytime() {
            return deliverytime;
        }

        public void setDeliverytime(String deliverytime) {
            this.deliverytime = deliverytime;
        }

        public String getDrugcodes() {
            return drugcodes;
        }

        public void setDrugcodes(String drugcodes) {
            this.drugcodes = drugcodes;
        }

        public String getQuantity() {
            return quantity;
        }

        public void setQuantity(String quantity) {
            this.quantity = quantity;
        }

        public String getProvider() {
            return provider;
        }

        public void setProvider(String provider) {
            this.provider = provider;
        }

        public String getProvidername() {
            return providername;
        }

        public void setProvidername(String providername) {
            this.providername = providername;
        }

        public String getInvoicemoney() {
            return invoicemoney;
        }

        public void setInvoicemoney(String invoicemoney) {
            this.invoicemoney = invoicemoney;
        }

        public String getDeliverimgurl() {
            return deliverimgurl;
        }

        public void setDeliverimgurl(String deliverimgurl) {
            this.deliverimgurl = deliverimgurl;
        }

        public String getCreatetime() {
            return createtime;
        }

        public void setCreatetime(String createtime) {
            this.createtime = createtime;
        }

        public String getDrugcount() {
            return drugcount;
        }

        public void setDrugcount(String drugcount) {
            this.drugcount = drugcount;
        }

        public List<DrugsBean> getDrugs() {
            return drugs;
        }

        public void setDrugs(ArrayList<DrugsBean> drugs) {
            this.drugs = drugs;
        }

        public static class DrugsBean implements Serializable {
            /**
             * batchnumber :
             * expiredate :
             * drugcode : 81857470012642467758
             * drugcodelevelno : 1
             * parentdrugcode : 88958190001270411607
             * quantity : 0
             * drugid : 1
             */

            private String batchnumber;
            private String expiredate;
            private String drugcode;
            private String drugcodelevelno;
            private String parentdrugcode;
            private String quantity;
            private String drugid;
            private String createtime;

            //额外的参数

            private String drugName; //名字
            private boolean isFirst;//是否为第一个

            private int count; //数量


            public String getCreatetime() {
                return createtime;
            }

            public void setCreatetime(String createtime) {
                this.createtime = createtime;
            }

            public String getBatchnumber() {
                return batchnumber;
            }

            public void setBatchnumber(String batchnumber) {
                this.batchnumber = batchnumber;
            }

            public String getExpiredate() {
                return expiredate;
            }

            public void setExpiredate(String expiredate) {
                this.expiredate = expiredate;
            }

            public String getDrugcode() {
                return drugcode;
            }

            public void setDrugcode(String drugcode) {
                this.drugcode = drugcode;
            }

            public String getDrugcodelevelno() {
                return drugcodelevelno;
            }

            public void setDrugcodelevelno(String drugcodelevelno) {
                this.drugcodelevelno = drugcodelevelno;
            }

            public String getParentdrugcode() {
                return parentdrugcode;
            }

            public void setParentdrugcode(String parentdrugcode) {
                this.parentdrugcode = parentdrugcode;
            }

            public String getDrugName() {
                return drugName;
            }

            public void setDrugName(String drugName) {
                this.drugName = drugName;
            }

            public boolean isFirst() {
                return isFirst;
            }

            public void setFirst(boolean first) {
                isFirst = first;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public String getQuantity() {
                return quantity;
            }

            public void setQuantity(String quantity) {
                this.quantity = quantity;
            }

            public String getDrugid() {
                return drugid;
            }

            public void setDrugid(String drugid) {
                this.drugid = drugid;
            }
        }
    }

}
